//
//  YPBussinessEnvs.swift
//  
//
//  Created by ogawa on 2020/5/26.
//  Copyright © 2020 ogawa. All rights reserved.
//

import UIKit

enum Keys {
    case bugly, umeng

    var apiKey: String {
        switch self {
        case .bugly: return ""
        case .umeng: return ""
        }
    }

    var appId: String {
        switch self {
        case .bugly: return ""
        case .umeng: return ""
        }
    }
    
}

public extension YPEnvsProtocol {
    
    static var shareEnvs: YPBussinessEnvs {
        return YPBussinessEnvs()
    }

    ///极光推送配置
    static var jpush: JPushEnvs {
        return JPushEnvs()
    }
    
}

public struct YPBussinessEnvs {
     struct Path {
         static let Documents = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]
         static let Tmp = NSTemporaryDirectory()
     }
}

extension YPBussinessEnvs {
    
}

//MRAK: 各大厂商SDK配置部分

/// 极光推送SDK
public struct JPushEnvs {
}
extension JPushEnvs {
    
    /// 极光推送
    public var appKey:String{
        get{
            return "***********"
        }
    }
    
    public var appSecret:String{
        get{
            return "***************"
        }
    }
    
    public var channel:String{
        get{
            return "**********"
        }
    }
    
    /// isProduction 是否生产环境. 如果为开发状态,设置为 NO; 如果为生产状态,应改为 YES.
    public var is_production:Bool{
        get{
            return !YPEnvs.isDebug
        }
    }
    
}
